<!DOCTYPE>
<html>
    <head>
        <title>首页</title>
    </head>
    <body>
        <h2>第一个页面</h2>
        <input type="button" value="ajax" id="aClick"/>
    </body>

    <script src="/js/jquery-1.4.1.min.js"></script>
    <script>
        $(function () {
            $("#aClick").click(function () {
                $.ajax({
                    url:'/index',
                    type:'post',
                    timeout:600000000,
                    success: function (data){
                        console.log(data);
                        alert(data+"=====");
                    }
                });
            });
        });
    </script>
</html>